#include <iostream>
#include <string>

#include "benchmark.hpp"
#include "bs1_benchmark.hpp"

/*

g++-4.7 bs1_benchmark.cpp -std=c++11 -O2 -lboost_signals -o ~/benchmark/bs1_benchmark.out

*/

int main(int argc, char* argv[])
{
    using Foo = benchmark_class::Bs1;

    if (argc == 4)
    {
        std::size_t start_n = round_2_down(std::stoll(argv[1]));
        std::size_t maximum_n = round_2_up(std::stoll(argv[2]));
        std::size_t emission_ratio = std::stoll(argv[3]);

        std::cout << Foo::memory(start_n, maximum_n, emission_ratio) << std::endl;
    }
    else
    {
        std::cerr << "(start) (end) (ratio)" << std::endl;
        return 1;
    }
}
